package com.product.system.domain.response;


import cn.hutool.log.Log;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Transient;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ArgpHoliday {



    /**
     * 请假申请记录的唯一标识
     */
    private int id;

    /**
     * 员工姓名
     */
    private String employeeName;

    /**
     * 员工所在部门
     */
    private String department;

    /**
     * 请假类型标识
     * 1: 事假
     * 2: 婚假
     * 3: 丧假
     * 4: 病假
     * 5: 其他
     */
    private int leaveTypeId;

    /**
     * 请假开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;

    /**
     * 请假结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;

    /**
     * 请假时长，以小时或天为单位
     */
    private Integer leaveDuration;

    /**
     * 请假事由
     */
    private String leaveReason;

    /**
     * 申请状态
     */
    private String status;


    @Transient
    private String taskId;
    @Transient
    private String taskName;
    @Transient
    private String taskAssignee;
    @Transient
    private String instanceId;
}
